package com.metel.mservice.common.context;

import javax.servlet.ServletContext;

import org.springframework.core.io.Resource;
import org.springframework.web.util.Log4jWebConfigurer;

/**
 * Context for Production
 * 
 * @author sr80.choi
 */
class ProdContext implements OpenAPIContext {

	@Override
	public Resource getServerPropertyLocation(Resource location) {
		return location;
	}

	@Override
	public void initializeWebLogger(ServletContext servletContext) {
		Log4jWebConfigurer.initLogging(servletContext);
	}

	@Override
	public boolean isProductionContext() {
		return true;
	}
}
